<template>
	<view class="activeInfo">
		<image :src=imageUrl mode=""></image>

	</view>
</template>

<script setup>
	const {
		proxy
	} = getCurrentInstance()
	const type = ref()
	const key = ref(null)
	onLoad((options) => {
		console.log(options)
		key.value = options.key; // 获取当前打开过的页面路由数组
		console.log(key.value)
		if (!proxy.sjuBase.isNull(options.openid)) {
			proxy.sjuLogin.saveValue("xndzOpenid", options.openid);
		}
		if (proxy.sjuBase.isNull(proxy.sjuLogin.getValue('xndz_mobileShip'))) {
			proxy.sjuNav.navigateTo('/intake/login')
		}

	})
	const imageUrl = ref(null)
	onMounted(() => {
		// getType()
		getImage()

	})
	// const getType=()=>{
	// 	if (proxy.sjuLogin.getValue("xndz_mobile")) {
	// 		type.value = 'shop'
	// 	} else {
	// 		ype.value = 'user'
	// 	}
	// }
	const getImage = () => {
		if(key.value==2){
			imageUrl.value = '../../../static/image/2-2.jpg'
		}else if(key.value==3){
			imageUrl.value = '../../../static/image/3-3.jpg'
		}else if(key.value==4){
			imageUrl.value = '../../../static/image/4-4.jpg'
		}else if(key.value==5){
			imageUrl.value = '../../../static/image/5-5.jpg'
		}else if(key.value==7){
			imageUrl.value = '../../../static/image/7-7.jpg'
		}else if(key.value==9){
			imageUrl.value = '../../../static/image/9-9.jpg'
		}

	}
</script>

<style lang="scss">
	.activeInfo {
		width: 100%;
		height: 100%;
		overflow: hidden;

		image {
			width: 100%;
			height: 100%;
		}
	}
</style>